//
//  ImageGridTableViewController.h
//  ImageGridCell
//
//  Created by 为为 on 14-7-25.
//  Copyright (c) 2014年 为为. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CImageGridCell.h"
#import "NImageGridCell.h"

@interface ImageGridTableViewController : UIViewController<UITableViewDataSource, UITableViewDelegate>

@property (nonatomic, copy) void(^imagePressedBlock)(ImageGridTableViewController*, NSUInteger rowIndex, NSUInteger imageIndex, UIImage*);
@property (nonatomic, copy) void(^imageDeletedBlock)(ImageGridTableViewController*, NSUInteger rowIndex, NSUInteger imageIndex, UIImage*);
@property (nonatomic, copy) void(^cancelPressedBlock)(ImageGridTableViewController*);
@property (nonatomic, copy) void(^resetPressedBlock)(ImageGridTableViewController*);

@property (nonatomic, assign) BOOL hideRightBarButtonItem;

@property (weak, nonatomic) IBOutlet UITableView *mtableView;

- (IBAction)cancelButtonPressed:(id)sender;
- (IBAction)resetButtonPressed:(id)sender;

- (id)initWithArray:(NSArray*)itemArray;

- (NSRange)imageRangeForIndexPath:(NSIndexPath*)indexPath;

- (NSUInteger)imageIndexForIndexPath:(NSIndexPath*)indexPath index:(NSUInteger)idx;

@end
